local __restrains = 
{
	str =
	{
		str = 
		{	
			r_tohit = 1, r_tododge = 1,
			r_c = 1, r_t = 1,
			r_ap = 1, r_dp = 1,
		},
		agi = 
		{	
			r_tohit = 1, r_tododge = 1,
			r_c = 1, r_t = 1,
			r_ap = 1, r_dp = 1,
		},
		int = 
		{	
			r_tohit = 1, r_tododge = 1,
			r_c = 1, r_t = 1,
			r_ap = 1, r_dp = 1,
		},
			
	},
	agi =
	{
		str = 
		{	
			r_tohit = 1, r_tododge = 1,
			r_c = 1, r_t = 1,
			r_ap = 1, r_dp = 1,
		},
		agi = 
		{	
			r_tohit = 1, r_tododge = 1,
			r_c = 1, r_t = 1,
			r_ap = 1, r_dp = 1,
		},
		int = 
		{	
			r_tohit = 1, r_tododge = 1,
			r_c = 1, r_t = 1,
			r_ap = 1, r_dp = 1,
		},
	},
	int =
	{
		str = 
		{	
			r_tohit = 1, r_tododge = 1,
			r_c = 1, r_t = 1,
			r_ap = 1, r_dp = 1,
		},
		agi = 
		{	
			r_tohit = 1, r_tododge = 1,
			r_c = 1, r_t = 1,
			r_ap = 1, r_dp = 1,
		},
		int = 
		{	
			r_tohit = 1, r_tododge = 1,
			r_c = 1, r_t = 1,
			r_ap = 1, r_dp = 1,
		},
	}
	
}


--
-- no restrains
--
local __no_restrains = 
{
	str =
	{
		str = 
		{	
			r_tohit = 1, r_tododge = 1,
			r_c = 1, r_t = 1,
			r_ap = 1, r_dp = 1,
		},
		agi = 
		{	
			r_tohit = 1, r_tododge = 1,
			r_c = 1, r_t = 1,
			r_ap = 1, r_dp = 1,
		},
		int = 
		{	
			r_tohit = 1, r_tododge = 1,
			r_c = 1, r_t = 1,
			r_ap = 1, r_dp = 1,
		},
			
	},
	agi =
	{
		str = 
		{	
			r_tohit = 1, r_tododge = 1,
			r_c = 1, r_t = 1,
			r_ap = 1, r_dp = 1,
		},
		agi = 
		{	
			r_tohit = 1, r_tododge = 1,
			r_c = 1, r_t = 1,
			r_ap = 1, r_dp = 1,
		},
		int = 
		{	
			r_tohit = 1, r_tododge = 1,
			r_c = 1, r_t = 1,
			r_ap = 1, r_dp = 1,
		},
	},
	int =
	{
		str = 
		{	
			r_tohit = 1, r_tododge = 1,
			r_c = 1, r_t = 1,
			r_ap = 1, r_dp = 1,
		},
		agi = 
		{	
			r_tohit = 1, r_tododge = 1,
			r_c = 1, r_t = 1,
			r_ap = 1, r_dp = 1,
		},
		int = 
		{	
			r_tohit = 1, r_tododge = 1,
			r_c = 1, r_t = 1,
			r_ap = 1, r_dp = 1,
		},
	}
	
}

--
--	easy to swith between restrains and no restrains
restrains = __restrains
--restrains = __no_restrains

--
--	access by numberic index
--
restrains[1] = restrains.str
restrains[2] = restrains.agi
restrains[3] = restrains.int
restrains.str[1] = restrains.str.str
restrains.str[2] = restrains.str.agi
restrains.str[3] = restrains.str.int

restrains.agi[1] = restrains.agi.str
restrains.agi[2] = restrains.agi.agi
restrains.agi[3] = restrains.agi.int

restrains.int[1] = restrains.int.str
restrains.int[2] = restrains.int.agi
restrains.int[3] = restrains.int.int



